// 补贴档案归档
const subsidyArchiveManage = (request) => {
	return {
		// 分页查询补贴机构（下方）
		view_ofsSubsidyFiling_page(query = {}) {
			return request('/application/ofsSubsidyFiling/page', {
				method: 'post',
				data: query,
			})
		},
		// 机构聚合补贴分页（上方）
		view_ofsSubsidyFiling_aggregate(query = {}) {
			return request('/application/ofsSubsidyFiling/aggregate', {
				method: 'post',
				data: query,
			})
		},
		// 补贴发放回执
		view_ofsSubsidyApply_receipt(query = {}) {
			return request('/application/ofsSubsidyApply/receipt', {
				method: 'post',
				data: query,
			})
		},
		// 按年查询相关申请机构
		view_ofsSubsidyProject_years(query = {}) {
			return request('/application/ofsSubsidyProject/years', {
				method: 'post',
				data: query,
			})
		},
		// 通过id查询补贴归档
		view_ofsSubsidyFiling_view(id) {
			return request(`/application/ofsSubsidyFiling/${id}`, {
				method: 'get',
			})
		},
	}
}
export default ({ request }: any) => ({
	...subsidyArchiveManage(request),
})
